const getters = {
  isLogin: state => state.user.token !== null && state.user.token !== undefined && state.user.token !== '',
  token: state => state.user.token,
  userName: state => state.user.userInfo ? state.user.userInfo.username : ''
}
export default getters
